package com.qys.livesMall.shop.modal.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author yxh
 */
@Data
@Schema(name = "PurchaseCartVO", description = "采购购物车返回")
public class PurchaseCartVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "商品skuId")
    private Long goodsSkuId;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "商品图片")
    private String goodsImage;

    @Schema(description = "商品规格")
    private String goodsSpecification;

    @Schema(description = "商品价格")
    private BigDecimal goodsPrice;

    @Schema(description = "数量")
    private Integer goodsNumber;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "库存")
    private Integer num;
}
